package com.jcl.dd.service;

import com.jcl.dd.annotation.DataSource;
import com.jcl.dd.dao.SysUserDao;
import com.jcl.dd.model.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DataSource("slave")
public class SysUserService {

    @Autowired
    private SysUserDao sysUserDao;

    public List<SysUser> getAll() {
        return sysUserDao.getAll();
    }
}
